package com.qersoft.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qersoft.entity.ExamPaper;
import com.qersoft.entity.ExamRule;
import com.qersoft.entity.QuestionBank;
import java.util.List;

public interface ExamPaperService extends IService<ExamPaper> {
    String add(Long userId, Long paperId);
    String del(Long userId, Long paperId);
    ExamPaper generateExamPaper(ExamRule rule, String paperName);
    List<ExamPaper> getExamPaperList();
    ExamPaper getExamPaperById(Integer paperId);
    ExamRule getExamRuleById(Integer ruleId);
    List<QuestionBank> getQuestionsByRule(ExamRule rule);
    List<ExamPaper> selectByRuleId(Integer ruleId);
}